package com.dilean.impl.webservice;

import java.util.Calendar;

import org.springframework.stereotype.Service;

import com.dilean.api.dao.PersonDAO;
import com.dilean.api.model.Person;
import com.dilean.api.webservice.DileanWebService;
//import com.dilean.dileanservice.AddPersonRequestDocument.AddPersonRequest;
//import com.dilean.dileanservice.AddPersonResponseDocument.AddPersonResponse;
//import com.dilean.dileanservice.AddPersonRequestDocument.AddPersonRequest.Gender.Enum ;
import com.dilean.impl.model.PersonImpl;
import com.dilean.spring.AplicationContextHolder;

@Service
public class DileanWebServiceImpl implements DileanWebService
{
/*
    @Override
    public AddPersonResponse addPerson(AddPersonRequest request)
    {
        final String firstName = request.getFirstName();
        final String lastName = request.getLastName();
        final Calendar dateOfBirdth = request.getDateOfBirdth();
        final String email = request.getEmail();
        final Enum gender = request.getGender();
        
        final PersonDAO personDao = AplicationContextHolder.getInstance().getContext().getBean(PersonDAO.class);
        final Person person = new PersonImpl();
        person.setName(firstName + " " + lastName);
       // person.setParameter(attrId, attrValue)        
       // TODO 
        return null;
    }
*/
}
